package main

import (
	"github.com/go-flutter-desktop/go-flutter"
	"github.com/go-gl/glfw/v3.3/glfw"
)

var options = []flutter.Option{
// 	flutter.WindowInitialDimensions(800, 1280),
}

const windowHeight = 700
const windowWidth = 1000

func init() {
	// Notice: Code in init() delays first frame!

	// Not best practice, you should let go-flutter make this call.
	err := glfw.Init()
	if err != nil {
		panic(err)
	}

	vidMoce := glfw.GetPrimaryMonitor().GetVideoMode()

	options = append(
        options,
		flutter.WindowInitialDimensions( windowWidth, windowHeight, ),
		flutter.WindowDimensionLimits(windowWidth, windowHeight, vidMoce.Width, vidMoce.Height),
    )
	options = append(options,
		flutter.WindowInitialLocation((vidMoce.Width/2)-(windowWidth/2), (vidMoce.Height/2)-(windowHeight/2)),
	)
}
